/**
 * @description sequelize 实例
 * @author 刘煎蛋
 */


const Sequelize = require('sequelize');
const { MYSQL_CONF } = require('../conf/db');
const { isProd, isTest } = require('../utils/env');

const { host, user, password, database } = MYSQL_CONF

const conf = {
    host,
    dialect: 'mysql'
}

const seq = new Sequelize(database, user, password, conf);

module.exports = seq;